import request from '@/utils/request'

export function getTreeList(data) {
  return request({
    url: '/projectCatalog/getTreeList',
    method: 'post',
    params: data
  })
}

export function saveData(data) {
  return request({
    url: '/projectCatalog/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/projectCatalog/edit',
    method: 'post',
    data
  })
}

export function disabled(data) {
  return request({
    url: '/projectCatalog/delete',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/projectCatalog/getInfo',
    method: 'get',
    params: data
  })
}

export function getAllLeafNode(data) {
  return request({
    url: '/projectCatalog/getAllLeafNode',
    method: 'get',
    params: data
  })
}

export function getXMTreeList(data) {
  return request({
    url: '/projectCatalog/getXMTreeList',
    method: 'post',
    params: data
  })
}
